package lesson15;

public class Person{
		private String name;
		private int age;
		//private	String personalNumber;
		//private char sex;
		private double weight;
		public String education;  
		long personalNumber;
		boolean isMale;
		Person[] friendsArray;
		/*Person(String name, int age, String personalNumber, char sex, double weight) 
		{
			this(name, age);
			//this.personalNumber = personalNumber;
			//this.sex = sex;
			this.weight = weight;
		}
		
		Person(String name, int age)
		{
			this.name = name;
			this.age = age;
		}*/
		
		public Person()
		{
			this.age = 0;
			this.weight = 4;
		}
		
		Person(String name, long personalNymber, boolean isMale)
		{
			this();
			this.name = name;
			this.personalNumber = personalNymber;
			this.isMale = isMale;
			friendsArray = new Person[3];
			/*for (Person i : friendsArray) {
				i = new Person();
			}*/
			
		}
		
		void printPerson()
		{
			System.out.println("Name " + this.name);
			System.out.println("Age " + this.age);
			System.out.println("weight " + this.weight);
			System.out.println("Is male " + isMale);
			//System.out.println("number of friends: " + friendsArray.length);
		}
				
		public void setAge(int age) {
			this.age = age;
		}
		
		public void setName(String name) {
			this.name = name;
		}
		
		public void setPersonalNumber(long personalNumber) {
			this.personalNumber = personalNumber;
		}
		
		/*public void setSex(char sex) {
			this.sex = sex;
		}*/
		
		public void setWeight(double weight) {
			this.weight = weight;
		}
		
		public double getWeight() {
			return weight;
		}
		
		/*public char getSex() {
			return sex;
		}
		
		public String getPersonalNumber() {
			return personalNumber;
		}*/

		public int getAge() {
			return age;
		}
		
		public String getName() {
			return name;
		}
		
		

}
